package com.bw.shopping.adapter;

import com.bw.shopping.R;
import com.bw.shopping.entity.AdressEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

/**
 * @author KK
 * @description:
 * @date :2021/10/29 13:41
 */
public class AdressAdapter extends BaseQuickAdapter<AdressEntity.DataBean, BaseViewHolder> {
    public AdressAdapter() {
        super(R.layout.item_adress);
        addChildClickViewIds(R.id.item_adress_radio,R.id.item_adress_update,R.id.item_adress_del);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, AdressEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.item_adress_username,dataBean.getShip_user_name());
        baseViewHolder.setText(R.id.item_adress_adress,dataBean.getShip_address());
    }
}
